#include <stdio.h>
#include <string.h>

//利用冒泡排序，将字符与数组分开，前面是字符，后面是数字，顺序不变
int main(int argc,char* agrv[])
{
    char s[100] ="bhjb2qubiu32r4313e1";
    int s_len = strlen(s);
    int i = 0,j = 0;
    char tmp;
    for(i = 0;i < s_len - 1;i++)
    {
        for(j = 0;j < s_len - i - 1;j++)
        {
            if(s[j]<'0' || s[j] > '9')
                continue;
            if(s[j+1] < '0' || s[j+1] > '9')
            {
                tmp = s[j];
                s[j] = s[j+1];
                s[j+1] = tmp;
            }
        }
    }
    printf("%s\n",s);
    return 0;
}